package interactive.states
{
	import events.GestureEvent;
	
	import flash.geom.Point;
	
	import interactive.GestureManager;

	/**
	 *
	 * 离开状态，仅仅为了触发离开事件而设，立刻变为普通状态 
	 * @author Raykid
	 * 
	 */
	public class LeaveState implements IGestureState
	{
		public function LeaveState()
		{
		}

		public function backIn(manager:GestureManager, point:Point):void
		{
			// 无操作
		}
		public function switchIn(manager:GestureManager, point:Point):void
		{
			// 触发离开事件并转换为普通状态
			manager.upDispatcher.dispatchEvent(new GestureEvent(GestureEvent.LEAVE, manager.upTarget, true, false, point.x, point.y));
			manager.switchState(manager.normalState, point);
		}
		public function switchOut(manager:GestureManager, point:Point):void
		{
			// 无操作
		}
		public function touch(manager:GestureManager, point:Point):void
		{
			// 无操作
		}
		public function leave(manager:GestureManager, point:Point):void
		{
			// 无操作
		}
		public function move(manager:GestureManager, point:Point):void
		{
			// 无操作
		}
		public function toString():String
		{
			return "Leave";
		}
		
	}
}